package com.lecyon.farm.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 短信对象
 *
 * @author Yao Zheng
 * @Date 2019/10/20 12:13
 */
@Data
@ApiModel(value = "短信对象")
public class Sms {

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "短信验证码")
    private String code;

    @ApiModelProperty(value = "短信验证码生成时间")
    private LocalDateTime time;

    @ApiModelProperty(value = "任务编号")
    private String taskNumber;

    public Sms() {
    }

    public Sms(String phone, String code, LocalDateTime time) {
        this.phone = phone;
        this.code = code;
        this.time = time;
    }
}
